<template>
	<view class="content">
		<table>
			<tr>
				<td>采购商姓名</td>
				<td>采购商手机号</td>
				<td>申请时间</td>
				<td>采购商等级</td>
				<td>企业类型</td>
				<td>其他信息</td>
				<td>操作</td>
			</tr>

			<tr v-for="v in list">
				<td>{{v.Name}}</td>
				<td>{{v.Tel}}</td>
				<td>{{v.SqTime}}</td>
				<td>{{v.ShopDj}}</td>
				<td>{{v.ShopType}}</td>
				<td>{{v.QtXx}}</td>
				<td>操作</td>
			</tr>
		</table>

		<button @click="add()">去添加</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: []
			}
		},
		onShow() {
			this.get_date()
		},
		methods: {
			get_date() {
				uni.request({
					url: 'http://127.0.0.1:8080/list', //仅为示例，并非真实接口地址。
					data: {

					},
					header: {
						'content-type': 'application/x-www-form-urlencoded' //自定义请求头信息
					},
					success: (res) => {
						console.log(res.data)
						this.list = res.data.Data

					}
				});
			},
			add() {
				uni.navigateTo({
					url: "/pages/add/add"
				})
			},
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>